package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.rule.LimitRuleRespDto;
import com.cmc.cloud.cmclink.doc.constant.DocApiConstants;
import com.cmes.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author lzp
 */
@FeignClient(name = DocApiConstants.NAME)
@Tag(name = "RPC - 服务 禁接规则")
public interface LimitRuleApi {

    String PREFIX = DocApiConstants.PREFIX + "/role";

    /**
     * 禁接规则
     * @param ruleType
     * @return
     */
    @GetMapping(PREFIX + "/query/{ruleType}")
    @Operation(summary = "禁接规则")
    CommonResult<List<LimitRuleRespDto>> queryRuleInfo(@PathVariable("ruleType") String ruleType);
}
